package com.hckjsec.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.system.mapper.SysMembershipCostMapper;
import com.hckjsec.system.domain.SysMembershipCost;
import com.hckjsec.system.service.ISysMembershipCostService;

/**
 * 会费缴纳Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-12
 */
@Service
public class SysMembershipCostServiceImpl implements ISysMembershipCostService 
{
    @Autowired
    private SysMembershipCostMapper sysMembershipCostMapper;

    /**
     * 查询会费缴纳
     * 
     * @param membershipId 会费缴纳ID
     * @return 会费缴纳
     */
    @Override
    public SysMembershipCost selectSysMembershipCostById(Long membershipId)
    {
        return sysMembershipCostMapper.selectSysMembershipCostById(membershipId);
    }

    /**
     * 查询会费缴纳列表
     * 
     * @param sysMembershipCost 会费缴纳
     * @return 会费缴纳
     */
    @Override
    public List<SysMembershipCost> selectSysMembershipCostList(SysMembershipCost sysMembershipCost)
    {
        return sysMembershipCostMapper.selectSysMembershipCostList(sysMembershipCost);
    }

    /**
     * 新增会费缴纳
     * 
     * @param sysMembershipCost 会费缴纳
     * @return 结果
     */
    @Override
    public int insertSysMembershipCost(SysMembershipCost sysMembershipCost)
    {
        return sysMembershipCostMapper.insertSysMembershipCost(sysMembershipCost);
    }

    /**
     * 修改会费缴纳
     * 
     * @param sysMembershipCost 会费缴纳
     * @return 结果
     */
    @Override
    public int updateSysMembershipCost(SysMembershipCost sysMembershipCost)
    {
        return sysMembershipCostMapper.updateSysMembershipCost(sysMembershipCost);
    }

    /**
     * 批量删除会费缴纳
     * 
     * @param membershipIds 需要删除的会费缴纳ID
     * @return 结果
     */
    @Override
    public int deleteSysMembershipCostByIds(Long[] membershipIds)
    {
        return sysMembershipCostMapper.deleteSysMembershipCostByIds(membershipIds);
    }

    /**
     * 删除会费缴纳信息
     * 
     * @param membershipId 会费缴纳ID
     * @return 结果
     */
    @Override
    public int deleteSysMembershipCostById(Long membershipId)
    {
        return sysMembershipCostMapper.deleteSysMembershipCostById(membershipId);
    }
}
